//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.carhailing.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carhailing.common.domain.CouponActive;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CouponActiveMapper extends BaseMapper<CouponActive> {
    @Select({"SELECT * FROM `coupon_active` a", "LEFT JOIN coupon_schedule_dto s ON a.coupon_schedule_id = s.coupon_schedule_id", "WHERE DATEDIFF(s.coupon_schedule_start_time, NOW()) <= 3"})
    List<CouponActive> selectThreeDayActive();
}
